package com.avic.rong.utils;

/**
 * Creater: Created by wangyz on 2017/1/11.
 * Email: 936804097@qq.com
 */

public class ConstantsUtils {


    public static final String APP_ID = "wx1a2342346402f5b2";
    public static final String EMPTY_STR = "";
    public static final String EMPTY_STR_DOUBLE_QUOTE = "\"\"";
    public static final String URL_SHARE_DEFAULT = "www.baidu.com";
    public static final String MESSAGE_COUNT = "message_count";

    public static final String BRAND_SELECT_ID_STR = "brand_select_id";
    public static final String BRAND_SELECT_NAME_STR = "brand_select_str";
    public static final String BRAND_SELECT_LEFT_FRAGMENT = "brand_select_left";
    public static final String BRAND_SELECT_CAT_ID = "brand_select_cat_id";
    public static final String MESSAGE_SWITCH = "message_switch";
    public static final String UMENG_CHANNEL = "UMENG_CHANNEL";

    //login
    public static final String USER_INFO = "user_token";
    public static final String LOCATION_CITY = "location_city";
    public static final String LOCATION_PROVINCE = "location_province";
    public static final String VERSION_IGNORE = "version_ignore";//忽略版本

    public static final String SHARE_USER_ID = "shareUserId";
    public static final String SHARE_BROADCAST_ID = "shareBroadcastId";
    public static final String SHARE_NEW_INSTALL = "new_install";//是否是最新安装
    public static final String SHARE_BROADCAST_SOURCE = "source";//来源

    public static final String SHARE_TYPE = "shareType";//1:文章 2:商品 3：培训  4:问答 5:问题  6,首页  7.商城首页  8.培训首页
    public static final String SHARE_ID = "shareId";
    public static final String TYPE_FLAG = "typeFlg"; //typeFlg = 5  视频详情



    //消息的时间
    public static final String MESSAGE_TIME = "message_time";

    //热词
    public static final String HOT_WORD = "hot_word";

    //glide缓存路径
    public static final String GLIDE_CACHE_PATH = "image_disk_cache";

    //动画时间
    public static final int CURSOR_ANIMATOR_DURATION = 250;
    public static final String ACTION_SOURCE_KEYBOARD = "action_source_keyboard";
    public static final int PICTURE_MAX_SUM = 50;
    public static final int PICTURE_MAX_SUM_NINE = 9;
    public static final int ACTION_SEND_PIC = 10;
    //sharepreference文件名
    public static final String SP_FILE_NAME = "sharePref";
    public static final String SEARCH_HISTORY_TAG = "search_histroy_tag";
    public static final String START_UP_FIRST = "start_up_first";
    public static final String COVER_CONTENT_PUBLISH_FIRST = "content_publish_first";

    public static final String USER_GOOD_ARTICLES = "good_articles";
    public static final String USER_COLLECT_PRODUCT_IDS = "user_collect_product_ids";
    public static final String CATEGORY_CACHE = "category_cache";
    public static final String TYPE_CONTROL_SHARE_DOT = "type=hidden";


    //验证码类型1：注册验证 2：登录安全验证 3：找回密码验证 4：绑定手机验证
    public static final int CHECK_CODE_REGISTER = 1;
    public static final int CHECK_CODE_LOGIN = 2;
    public static final int CHECK_CODE_FIND_PWD = 3;
    public static final int GETCHECK_CODE_BIND_MODIFY = 4;
    public static final int CHECK_CODE_BIND_PHONE = 5;

    //注册来源类型 0 anroid,1 ios,2 pc, 3 微信，4 手机页面
    public static final int LOGIN_SOURCE_ANDROID = 0; //android

    //登录类型
    public static final int LOGIN_TYPE_PWD = 2; //密码登录
    public static final int LOGIN_TYPE_CHECK_CODE = 1;//验证码登录
    public static final int LONG_TYPE_OTHER = 3;//第三方登录

    //0：平台 1；京东 2：微信 3：QQ 4：微博
    public static final int LOGIN_BINDING_PLATFORM_JINGDONG = 1;
    public static final int LOGIN_BINDING_PLATFORM_WEIXIN = 2;
    public static final int LOGIN_BINDING_PLATFORM_QQ = 3;
    public static final int LOGIN_BINDING_PLATFORM_WEIBO = 4;

    //网络请求相关
    public static final String STATUS_SUCCESS_200 = "200";
    public static final String STATUS_SUCCESS_1000 = "1000";
    public static final String STATUS_SUCCESS_2000 = "2000";
    public static final String STATUS_SUCCESS_1008 = "1008";
    //新增
    public static final String STATUS_SUCCESS_0000 = "0000";
    public static final String STATUS_REQUEST_ERROR_1001 = "1001";
    public static final String STATUS_SYSTEM_ERROR_9999 = "9999";
    public static final String STATUS_BIND_PHONE_1013 = "1013";

    public static final String STATUS_1008 = "1008";



    public static final String STATUS_UNBINDING_2009 = "2009";
    public static final String STATUS_UNBINDING_9999 = "9999";
  //  public static final String STATUS_SUCCESS_0000 = "0000";//成功




    //1 新增 2 注册 3 启动 4 登录 5绑定 6修改密码 7跳转至京东
    public static final String LOG_STATUS_NEW = "1";
    public static final String LOG_STATUS_REGISTER = "2";
    public static final String LOG_STATUS_START = "3";
    public static final String LOG_STATUS_LOGIN = "4";

    public static final String LOG_STATUS_BINDING = "5";
    public static final String LOG_STATUS_UPDATE_PWD = "6";
    public static final String LOG_STATUS_GO_JINGDONG = "7";
    public static final String LOG_STATUS_ACTIVITY_SHARE = "8";

    public static final String UUID = "uuid_device";

    public static final String TIME_ONE_MONTH = "近一个月";
    public static final String TIME_THREE_MONTH = "近三个月";
    public static final String TIME_HALF_YEAR = "近半年";
    public static final String TIME_ONE_YEAR = "近一年";



//    //事件漏斗统计
//    //   登录
//    public static final int EVENT_LOGIN = 1;
//    //    开始注册
//    public static final int EVENT_REGISTER = 2;
//    //    发送验证码
//    public static final int EVENT_SENDCODE = 3;
//    //    完成注册
//    public static final int EVENT_FINISHREGISTER = 4;
//    //    访问首页
//    public static final int EVENT_ACCESSINDEX = 5;
//    //    搜索商品
//    public static final int EVENT_SEARCHGOODS = 6;
//    //    搜索资讯
//    public static final int EVENT_SEARCHINFORMATION = 7;
//    //    搜索百科
//    public static final int EVENT_SEARCHENCYCLOPEDIA = 8;
//    //    搜索测评
//    public static final int EVENT_SEARCHAPPRAISAL = 9;
//    //    家电质量榜列表
//    public static final int EVENT_GOODSLIST = 10;
//    //    家电资讯列表
//    public static final int EVENT_INFORMATIONLIST = 11;
//    //    华质说列表
//    public static final int EVENT_HUAZHISAYLIST = 12;
//    //    质量资讯列表
//    public static final int EVENT_QUALITYINFORMATIONLIST = 13;
//    //    质惠百科列表
//    public static final int EVENT_ENCYCLOPEDIALIST = 14;
//    //    权威测评列表
//    public static final int EVENT_APPRAISALLIST = 15;
//    //    家电详情
//    public static final int EVENT_JIADIANDETAILS = 16;
//    //    资讯详情
//    public static final int EVENT_ZIXUDETAILS = 17;
//    //    百科详情
//    public static final int EVENT_BAIKEDETAILS = 18;
//    //    测评详情
//    public static final int EVENT_CEPINGDETAILS = 19;
//    //    品牌列表
//    public static final int EVENT_BRANDLIST = 20;
//    //    前往购买
//    public static final int EVENT_GOBUY = 21;

    //------------------------------------------------------------------------------------
    //页面 PV
    public static final String EV_PAGE = "page";
    //显示登录页
    public static final String EV_DENGLUPAGE = "denglupage";
    //点击对比
    public static final String EV_DUIBICLICK = "duibiclick";
    //显示对比详情页
    public static final String EV_DUIBIDETAILPAGE = "duibidetailpage";
    // 显示对比页
    public static final String EV_DUIBIYEPAGE = "duibiyepage";
    // 点击对比页开始对比
    public static final String EV_KAISHIDUIBICLICK = "duibi-kaishiduibiclick";
    //点击对比页添加商品
    public static final String EV_TIANJIASHANGPINCLICK = "duibi-tianjiashangpinclick";
    // 点击对比页添加
    public static final String EV_TIANJIACLICK = "duibi-tianjiaclick";
    //  显示首页
    public static final String EV_HOMEPAGE = "homepage";
    //  点击首页banner
    public static final String EV_BANNERCLICK = "hp-bannerclick";
    //  点击首页冰箱
    public static final String EV_BINGXIANGCLICK = "hp-bingxiangclick";
    // 点击首页测评1
    public static final String EV_CEPING1CLICK = "hp-ceping1click";
    //  点击首页测评2
    public static final String EV_CEPING2CLICK = "hp-ceping2click";
    // 点击首页电热水器
    public static final String EV_DIANRESHUIQICLICK = "hp-dianreshuiqiclick";
    // 点击首页华质说
    public static final String EV_HUAZHISHUOCLICK = "hp-huazhishuoclick";
    //点击首页空调
    public static final String EV_KONGTIAOCLICK = "hp-kongtiaoclick";
    // 点击首页洗衣机
    public static final String EV_XIYIJICLICK = "hp-xiyijiclick";
    // 点击首页质惠百科
    public static final String EV_ZHIHUIBAIKECLICK = "hp-zhihuibaikeclick";
    //  点击首页质惠优选
    public static final String EV_ZHIHUIYOUXUANCLICK = "hp-zhihuiyouxuanclick";
    //  显示华质说列表页
    public static final String EV_HUAZHISHUOLISTPAGE = "huazhishuolistpage";
    // 显示质惠百科列表页
    public static final String EV_ZHIHUIBAIKELISTPAGE = "zhihuibaikelistpage";
    //  点击品牌
    public static final String EV_PINPAICLICK = "pinpaiclick";
    // 显示品牌页
    public static final String EV_PINPAIPAGE = "pinpaipage";
    // 显示权威测评列表页
    public static final String EV_QUANWEICEPINGLISTPAGE = "quanweicepinglistpage";
    // 显示商品详情页
    public static final String EV_SHANGPINDETAILPAGE = "shangpindetailpage";
    // 显示商品列表页
    public static final String EV_SHANGPINLISTPAGE = "shangpinlistpage";
    // 点击首页
    public static final String EV_SHOUYECLICK = "shouyeclick";
    // 点击商品详情页对比
    public static final String EV_SPDUIBICLICK = "sp-duibiclick";
    // 点击商品详情页分享
    public static final String EV_FENXIANGCLICK = "sp-fenxiangclick";
    // 点击商品详情页加入对比
    public static final String EV_JIARUDUIBICLICK = "sp-jiaruduibiclick";
    // 点击商品详情页去购买
    public static final String EV_QUGOUMAICLICK = "sp-qugoumaiclick";
    // 点击商品详情页收藏
    public static final String EV_SHOUCANGCLICK = "sp-shoucangclick";
    // 显示文章详情页
    public static final String EV_WENZHANGDETAILPAGE = "wenzhangdetailpage";
    // 显示我的页
    public static final String EV_WODEPAGE = "wodepage";
    // 点击我的
    public static final String EV_WODECLICK = "wodeclick";
    // 显示注册页
    public static final String EV_ZHUCEPAGE = "zhucepage";
    // 点击注册页获取验证码
    public static final String EV_SEEDCODECLICK = "zp-seedcodeclick";
    // 点击注册页确认
    public static final String EV_QUERENCLICK = "zp-querenclick";
    // 成功注册
    public static final String EV_ZHUCESUCCESS = "zp-zhucesuccess";


    /**********************广告图位置*********************/

    public static final String ADV_yield_TOP = "APP-生产-顶部轮播";
    public static final String ADV_train_TOP = "APP-培训-顶部轮播";
    public static final String ADV_ArticleDetailsPage_photo = "APP-文章详情页-广告图";
    public static final String ADV_STANDARD_TOP = "APP-标准化-顶部轮播";
    public static final String ADV_INFO_TOP = "APP-信息化-顶部轮播";
    public static final String ADV_YUANQIJIAN_TOP = "APP-元器件-顶部轮播";
    public static final String ADV_quality_TOP = "APP-质量-顶部轮播";
    public static final String ADV_SHOP_TOP = "APP-商城-顶部轮播";
    public static final String ADV_SHOP_STANDARD = "APP-商城-标准分类";
    public static final String ADV_SHOP_TUSHU = "APP-商城-图书分类";
    public static final String ADV_SHOP_SHIYONGWENDANG = "APP-商城-实用文档分类";
    public static final String ADV_SHOP_RUANJIANGONGJU = "APP-商城-软件工具分类";
    public static final String ADV_SHOP_TUSHUTUIJIANWEI = "APP-商城-图书推荐位";




    /******************** 正则相关常量 ********************/
    /**
     * 正则：手机号（简单）
     */
    public static final String REGEX_MOBILE_SIMPLE = "^[1]\\d{10}$";
    /**
     * 正则：手机号（精确）
     * <p>移动：134(0-8)、135、136、137、138、139、147、150、151、152、157、158、159、178、182、183、184、187、188</p>
     * <p>联通：130、131、132、145、155、156、175、176、185、186</p>
     * <p>电信：133、153、173、177、180、181、189</p>
     * <p>全球星：1349</p>
     * <p>虚拟运营商：170</p>
     */
//    public static final String REGEX_MOBILE_EXACT = "^((13[0-9])|(14[5,7])|(15[0-3,5-9])|(17[0,3,5-8])|(18[0-9])|(17[0-9])|(147))\\d{8}$";

    public static final String REGEX_MOBILE_EXACT = "^1[0-9]{10}$";


    /**
     * 正则：电话号码
     */
    public static final String REGEX_TEL = "^0\\d{2,3}[- ]?\\d{7,8}";
    /**
     * 正则：身份证号码15位
     */
    public static final String REGEX_ID_CARD15 = "^[1-9]\\d{7}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}$";
    /**
     * 正则：身份证号码18位
     */
    public static final String REGEX_ID_CARD18 = "^[1-9]\\d{5}[1-9]\\d{3}((0\\d)|(1[0-2]))(([0|1|2]\\d)|3[0-1])\\d{3}([0-9Xx])$";
    /**
     * 正则：邮箱
     */
    public static final String REGEX_EMAIL = "^\\w+([-+.]\\w+)*@\\w+([-.]\\w+)*\\.\\w+([-.]\\w+)*$";


    /**
     * 昵称
     */
    public static final String REGEX_NICK_NAME = "^[\\u4E00-\\u9FA5A-Za-z0-9_-]{2,20}$";

    /**
     * 正则：URL
     */
    public static final String REGEX_URL = "[a-zA-z]+://[^\\s]*";
    /**
     * 正则：汉字
     */
    public static final String REGEX_ZH = "^[\\u4e00-\\u9fa5]+$";
    /**
     * 正则：用户名，取值范围为a-z,A-Z,0-9,"_",汉字，不能以"_"结尾,用户名必须是6-20位
     */
    public static final String REGEX_USERNAME = "^[\\w\\u4e00-\\u9fa5]{6,20}(?<!_)$";
    /**
     * 正则：yyyy-MM-dd格式的日期校验，已考虑平闰年
     */
    public static final String REGEX_DATE = "^(?:(?!0000)[0-9]{4}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-8])|(?:0[13-9]|1[0-2])-(?:29|30)|(?:0[13578]|1[02])-31)|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)-02-29)$";
    /**
     * 正则：IP地址
     */
    public static final String REGEX_IP = "((2[0-4]\\d|25[0-5]|[01]?\\d\\d?)\\.){3}(2[0-4]\\d|25[0-5]|[01]?\\d\\d?)";

    /************** 以下摘自http://tool.oschina.net/regex **************/
    /**
     * 正则：双字节字符(包括汉字在内)
     */
    public static final String REGEX_DOUBLE_BYTE_CHAR = "[^\\x00-\\xff]";
    /**
     * 正则：空白行
     */
    public static final String REGEX_BLANK_LINE = "\\n\\s*\\r";
    /**
     * 正则：QQ号
     */
    public static final String REGEX_TENCENT_NUM = "[1-9][0-9]{4,}";
    /**
     * 正则：中国邮政编码
     */
    public static final String REGEX_ZIP_CODE = "[1-9]\\d{5}(?!\\d)";
    /**
     * 正则：正整数
     */
    public static final String REGEX_POSITIVE_INTEGER = "^[1-9]\\d*$";
    /**
     * 正则：负整数
     */
    public static final String REGEX_NEGATIVE_INTEGER = "^-[1-9]\\d*$";
    /**
     * 正则：整数
     */
    public static final String REGEX_INTEGER = "^-?[1-9]\\d*$";
    /**
     * 正则：非负整数(正整数 + 0)
     */
    public static final String REGEX_NOT_NEGATIVE_INTEGER = "^[1-9]\\d*|0$";
    /**
     * 正则：非正整数（负整数 + 0）
     */
    public static final String REGEX_NOT_POSITIVE_INTEGER = "^-[1-9]\\d*|0$";
    /**
     * 正则：正浮点数
     */
    public static final String REGEX_POSITIVE_FLOAT = "^[1-9]\\d*\\.\\d*|0\\.\\d*[1-9]\\d*$";
    /**
     * 正则：负浮点数
     */
    public static final String REGEX_NEGATIVE_FLOAT = "^-[1-9]\\d*\\.\\d*|-0\\.\\d*[1-9]\\d*$";

    /************** If u want more please visit http://toutiao.com/i6231678548520731137/ **************/





}
